<?php /* Smarty version Smarty-3.0.7, created on 2012-07-21 10:46:01
         compiled from "D:\Source\cat-oriflame.com/modules/devilnewproduct/devilnewproduct.tpl" */ ?>
<?php /*%%SmartyHeaderCode:12184500a25f9ed07f3-78094628%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '79edd4314df554eefe48b7db4bd5b7cd1eee29ea' => 
    array (
      0 => 'D:\\Source\\cat-oriflame.com/modules/devilnewproduct/devilnewproduct.tpl',
      1 => 1342842316,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '12184500a25f9ed07f3-78094628',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_escape')) include 'D:\Source\cat-oriflame.com\tools\smarty\plugins\modifier.escape.php';
?>

<!-- MODULE Block new products -->
<div id="devilNewProducts" class="block products_block">
	<h4><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('new-products.php');?>
" title="<?php echo smartyTranslate(array('s'=>'New products','mod'=>'devilNewProduct'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'New products','mod'=>'devilNewProduct'),$_smarty_tpl);?>
</a></h4>
	<a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('new-products.php');?>
" title="<?php echo smartyTranslate(array('s'=>'All new products','mod'=>'devilNewProduct'),$_smarty_tpl);?>
" class="showAll"><?php echo smartyTranslate(array('s'=>'All new products','mod'=>'devilNewProduct'),$_smarty_tpl);?>
</a>
	<div class="block_content">
	<?php if ($_smarty_tpl->getVariable('new_products')->value!==false){?>
	
		<ul class="product_images clearfix">
		<?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('new_products')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['product']->index=-1;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['newProducts']['index']=-1;
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value){
 $_smarty_tpl->tpl_vars['product']->index++;
 $_smarty_tpl->tpl_vars['product']->first = $_smarty_tpl->tpl_vars['product']->index === 0;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['newProducts']['first'] = $_smarty_tpl->tpl_vars['product']->first;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['newProducts']['index']++;
?>
			<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['newProducts']['index']<2){?>
				<li<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['newProducts']['first']){?> class="first"<?php }?>>
				<div class="product_desc">
					<h5><a  href="<?php echo $_smarty_tpl->tpl_vars['product']->value['link'];?>
" ><?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
</a></h5>
					<a class="smallCont" href="<?php echo $_smarty_tpl->tpl_vars['product']->value['link'];?>
"><?php echo $_smarty_tpl->tpl_vars['product']->value['description_short'];?>
</a>
				<div class="btns">
					<p class="price_container">
					<?php if (!$_smarty_tpl->getVariable('priceDisplay')->value){?><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->tpl_vars['product']->value['price']),$_smarty_tpl);?>
<?php }else{ ?><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->tpl_vars['product']->value['price_tax_exc']),$_smarty_tpl);?>
<?php }?>
					</p>
				</div>
				<a class="link" href="<?php echo $_smarty_tpl->tpl_vars['product']->value['link'];?>
"><?php echo smartyTranslate(array('s'=>'view','mod'=>'devilNewProduct'),$_smarty_tpl);?>
</a>
				</div>
					<a class="product_image" href="<?php echo $_smarty_tpl->tpl_vars['product']->value['link'];?>
" title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['legend'],'html','UTF-8');?>
"><img src="<?php echo $_smarty_tpl->getVariable('link')->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['id_image'],'medium');?>
" height="<?php echo $_smarty_tpl->getVariable('homeSize')->value['height'];?>
" width="<?php echo $_smarty_tpl->getVariable('homeSize')->value['width'];?>
" alt="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['legend'],'html','UTF-8');?>
" /></a>
				</li>
			<?php }?>
		<?php }} ?>
		</ul>
		
		
	<?php }else{ ?>
		<p><?php echo smartyTranslate(array('s'=>'No new products at this time','mod'=>'devilNewProduct'),$_smarty_tpl);?>
</p>
	<?php }?>
	</div>
</div>
<!-- /MODULE Block new products -->